WalletDetailController = BaseController.extend({
	template:'WalletDetail',
	center:'余额',
	
	waitOn:function(){
		let self = this;
		this.partner = this.currentUser();
		return Meteor.subscribe('wallets',{partner_id: this.partner.id},{});
    },
    onRendered:function(){
		
	},
	data: function(){
		return {
			wallet:function(){
				let merchantWallet = Wallets.findOne();
				return merchantWallet ? merchantWallet.wallet : '';
			},
		};
	},
	envets: function () {
        
    }
})

WalletController = BaseController.extend({
	template:'Wallet',
	center:'钱包',
	
	waitOn:function(){
		let self = this;
		this.partner = this.currentUser();
		return Meteor.subscribe('wallets',{partner_id: this.partner.id},{});
    },
    onRendered:function(){
		
	},
	data: function(){
		return {
			wallet:function(){
				let merchantWallet = Wallets.findOne();
				return merchantWallet ? merchantWallet : '';
			},
		};
	},
})
